package c.f.d.a.a.b.f;

import java.security.cert.X509Certificate;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLException;
import javax.net.ssl.SSLSession;

public class a implements HostnameVerifier {
    public final boolean verify(String str, SSLSession sSLSession) {
        try {
            X509Certificate x509Certificate = (X509Certificate) sSLSession.getPeerCertificates()[0];
            x509Certificate.getSubjectDN().getName();
            c.a(str, x509Certificate, true);
            return true;
        } catch (SSLException e) {
            StringBuilder g = c.b.a.a.a.g("SSLException : ");
            g.append(e.getMessage());
            c.f.a.a.a.a.k("", g.toString());
            return false;
        }
    }
}
